<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'users-form',
	'enableAjaxValidation'=>false,
)); 
?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'f_name'); ?>
		<?php echo $form->textField($model,'f_name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'f_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'l_name'); ?>
		<?php echo $form->textField($model,'l_name',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'l_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'m_initial'); ?>
		<?php echo $form->textField($model,'m_initial',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'m_initial'); ?>
	</div>

	
	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mobile_no'); ?>
		<?php echo $form->textField($model,'mobile_no',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'mobile_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'position'); ?>
		<?php echo $form->textField($model,'position',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'position'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_type'); ?>
		<?php echo $form->textField($model,'user_type',array('size'=>7,'maxlength'=>7)); ?>
		<?php echo $form->error($model,'user_type'); ?>
	</div>

	<div class="row" style="<?php echo ($model->isNewRecord ? 'display:none' : '')?>">
		<?php echo $form->labelEx($model,'dt_created'); ?>
		<?php echo $form->textField($model,'dt_created', array('disabled'=>'disabled')); ?>
		<?php echo $form->error($model,'dt_created'); ?>
	</div>

    
	<div class="row">
		<?php echo $form->labelEx($model,'accessLevel'); ?>
		<?php echo $form->dropDownList($model,'accessLevel',array('1'=>'Viewer','2'=>'Admin')); ?>
		<?php echo $form->error($model,'accessLevel'); ?>
	</div>
	

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->